define(function(require, exports, module) {

	require("plugins/layer/theme/default/layer.css");
	require("plugins/layer/layer.js");

	$.extend({

		toast:function(msg, icon, animal) {
			var options = {
				icon: typeof(icon) == "number" ? icon : 1,
				zIndex: layer.zIndex,
				shift: animal ? animal : 0
			};
			layer.msg(msg, options);
		}
		
	});

	module.exports = layer;

});